#define _CRT_SECURE_NO_WARNINGS 1
#pragma once

#include<stdio.h>
#include<stdlib.h>
#include<assert.h>

typedef int SLDataType;
typedef struct SqList
{
	SLDataType* a;
	int size;
	int capacity;
}SL,*pSL;

void SLPrint(SL s);

void SLInit(pSL ps);
void SLDestroy(pSL ps);

void SLPushBack(pSL ps, SLDataType x);
void SLPushFront(pSL ps, SLDataType x);

void SLPopBack(pSL ps);
void SLPopFront(pSL ps);

void SLPushPos(pSL ps, int pos, SLDataType x);
void SLPopPos(pSL ps, int pos);